/* 
	
The MIT License (MIT)

Copyright (c) 2017 Etienne Martin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

*/

#dialog-overlay {
	position: absolute;
	left: 0px;
	top: 0px;
	bottom: 0px;
	right: 0px;
	z-index: 966;
	color: #fff;
	text-align: center;
	font-size: 18px;
	text-shadow: none;
	background: rgba(51, 51, 51, 0.6);
	opacity: 0;
	transition: opacity 0.5s;
	transform: translateZ(0);
}

#dialog-overlay.dialog-closing {
	transition: opacity 0.25s;
}

#dialog-overlay.dialog-visible {
	opacity: 1;
}

#dialog-holder {
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	height: 100%;
	z-index: 977;
	cursor: default;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transform: translateZ(0);
}

#dialog-holder.dialog-fixed {
	position: fixed;
	overflow: auto;
}

#dialog-holder #dialog-center {
	width: 100%;
	height: 100%;
	z-index: 999;
	border-spacing: 0px;
	padding: 0px;
	margin: 0px;
}

#dialog-holder #dialog-center td {
	text-align: center;
	vertical-align: middle;
	padding: 5%;
	margin: 0px;
	width: 90%;
	perspective: 1000px;
}

#dialog-holder #dialog-center td .dialog-alert {
	z-index: 999;
	position: relative;
	margin: 0 auto;
	padding: 10px 30px;
	background: #fff;
	z-index: 999;
	max-width: 400px;
	word-break: break-word;
	display: none;
	box-shadow: rgba(0, 0, 0, 0.1) 0 2px 3px, rgba(0, 0, 0, 0.2) 0 5px 15px;
	opacity: 0;
	transition: transform 0.5s, opacity 0.45s;
	font-size: 14px;
	color: #666;
}

@keyframes shake {
	20% {
		transform: translateX(-12px) rotateY(-8deg);
	}
	40% {
		transform: translateX(12px) rotateY(8deg);
	}
	60% {
		transform: translateX(-12px) rotateY(-8deg);
	}
	80% {
		transform: translateX(12px) rotateY(8deg);
	}
}

#dialog-holder #dialog-center td .dialog-alert[data-dialog-animation=scale] {
	-ms-transform: scale(0.8);
	transform: scale(0.8);
}

#dialog-holder #dialog-center td .dialog-alert[data-dialog-animation=slide] {
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

#dialog-holder #dialog-center td .dialog-alert.dialog-closing {
	transition: transform 0.25s, opacity 0.2s;
}

#dialog-holder #dialog-center td .dialog-alert.dialog-visible {
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
}

#dialog-holder #dialog-center td .dialog-alert.dialog-shaking {
	animation: shake 0.5s linear;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-border {
	position: absolute;
	top: -1px;
	left: -1px;
	right: -1px;
	bottom: -1px;
	border: solid #000 1px;
	z-index: -1;
	opacity: 0.2;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-title {
	padding: 20px 5px;
	padding-bottom: 0px;
	line-height: 25px;
	font-size: 24px;
	display: block;
	font-weight: normal;
	color: #555;
	font-weight: 400;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-title:empty {
	padding-top: 0px;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-message {
	padding: 0px 5px;
	padding-top: 20px;
	line-height: 1.444;
	display: block;
	max-width: 370px;
	margin: 0 auto;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-message a {
	color: #007eff;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-message:empty {
	padding-top: 0px;
}

#dialog-holder #dialog-center td .dialog-alert label {
	display: block;
	margin: 0 auto;
	margin-top: 10px;
	max-width: 300px;
}

#dialog-holder #dialog-center td .dialog-alert label input {
	box-sizing: border-box;
	padding: 15px 20px;
	border: solid #007eff 2px;
	outline: none;
	width: 100%;
	font-size: 14px;
	color: #555;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#dialog-holder #dialog-center td .dialog-alert .select {
	margin: 10px 5px 5px 5px;
	padding: 15px 30px;
	float: left;
	width: 30%;
	background: #eee;
	cursor: pointer;
	font-weight: bold;
	max-width: 240px;
	transition: background 0.25s;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-confirm,
#dialog-holder #dialog-center td .dialog-alert .dialog-cancel {
	display: block;
	margin: 10px auto 5px auto;
	padding: 15px 30px;
	background: #eee;
	cursor: pointer;
	font-weight: bold;
	max-width: 240px;
	transition: background 0.25s;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-confirm:hover,
#dialog-holder #dialog-center td .dialog-alert .dialog-cancel:hover,
#dialog-holder #dialog-center td .dialog-alert .select:hover {
	background: #e1e1e1;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-confirm:active,
#dialog-holder #dialog-center td .dialog-alert .select:active,
#dialog-holder #dialog-center td .dialog-alert .dialog-cancel:active {
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

#dialog-holder #dialog-center td .dialog-alert .dialog-confirm.dialog-confirm,
#dialog-holder #dialog-center td .dialog-alert .dialog-cancel.dialog-confirm {
	background: #007eff;
	color: #fff;
	margin-bottom: 10px;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-confirm.dialog-confirm:hover,
#dialog-holder #dialog-center td .dialog-alert .dialog-cancel.dialog-confirm:hover {
	background: #0071e6;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-confirm.dialog-cancel+.dialog-confirm,
#dialog-holder #dialog-center td .dialog-alert .dialog-cancel.dialog-cancel+.dialog-confirm {
	margin-top: 5px;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-close {
	position: absolute;
	top: 15px;
	right: 15px;
	margin-bottom: 10px;
	margin-bottom: -5px;
	cursor: pointer;
	line-height: 10px;
	padding: 5px;
	font-size: 24px;
	opacity: 0.5;
	transition: opacity 0.25s;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-transform: translateZ(0px);
}

#dialog-holder #dialog-center td .dialog-alert .dialog-close:hover {
	opacity: 1;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-close:before {
	content: "";
	position: absolute;
	top: -15px;
	left: -15px;
	right: -15px;
	bottom: -15px;
}

#dialog-holder #dialog-center td .dialog-alert .dialog-clearFloat {
	clear: both;
	width: 100%;
	height: 1px;
	display: block;
}